import junit.framework.TestCase;


public class NodoTest extends TestCase {

	public void testEqualsNodo() {
		Nodo n1 = new Nodo(14, 133, "X");
		Nodo n2 = new Nodo(14, 133, "Y");
		Nodo n3 = new Nodo(14, 133, "X");
		Nodo n4 = new Nodo(12, 13, "Z");
		
		assertEquals(false, n1.equals(n2));
		assertEquals(true, n1.equals(n3));
		assertEquals(false, n1.equals(n4));
	}

	public void testGetX() {
		Nodo n = new Nodo(1, 2, "X");

		assertEquals(1,n.getX());
	}

	public void testGetY() {
		Nodo n = new Nodo(1, 2, "X");

		assertEquals(2,n.getY());		
	}
}
